https://catalog.data.gov/dataset/nchs-death-rates-and-life-expectancy-at-birth was downloaded from data.gov.
This dataset contains death rates and life-expectancy statistics from 1900 to 2018. Exploratory analysis was conducted on this dataset.
summary(expectancy)
## year race sex life_expectancy
## Min. :1900 Length:1071 Length:1071 Min. :29.1
## 1st Qu.:1929 Class :character Class :character 1st Qu.:57.1
## Median :1959 Mode :character Mode :character Median :66.8
## Mean :1959 Mean :64.5
## 3rd Qu.:1989 3rd Qu.:73.9
## Max. :2018 Max. :81.4
## NA's :6
## death_rate
## Min. : 611.3
## 1st Qu.:1013.0
## Median :1513.7
## Mean :1593.1
## 3rd Qu.:2057.2
## Max. :3845.7
##
Below you will find a widget that you may use to few the contents of the data expectancy dataset. This is the dataset that will be explored later on in this analysis.
The plot below shows life expectancy by year for all sexes.
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.